<html lang="zh-CN" xmlns:th="http://www.thymeleaf.org">
<section th:class="| tab-pane fade ${result.data.notice!=null?null:'show active'} |"
         id="list" role="tabpanel">
    <table class="table table-bordered table-hover">
        <thead>
        <tr class="table-info">
            <th>Id</th>
            <th>姓名</th>
            <th>图片</th>
            <th>介绍</th>
            <th>类目名</th>
            <th>操作</th>
        </tr>
        </thead>
        <tbody>
        <tr th:each="notice,noticeState:${result.data.noticeList}">
            <td> [[${notice.noticeId}]] </td>
            <td> [[${notice.noticeTitle}]] </td>
            <td> [[${notice.noticeCover}]] </td>
            <td> [[${notice.noticeIntroduce}]] </td>
            <td> [[${notice.noticeCategoryName}]] </td>
            <td>
                <a th:href="@{/admin/notice(noticeId=${notice.noticeId})}"
                   type="button" class="btn btn-sm btn-outline-primary">
                    修改
                </a>
                <a th:href="@{/admin/notice/delete(noticeId=${notice.noticeId})}"
                   type="button"
                   class="btn btn-sm btn-outline-danger">删除</a>
            </td>
        </tr>
        </tbody>
    </table>
</section>
</html>
